<?php
class Helpers_SslSwitch extends Zend_Controller_Action_Helper_Abstract{ 
	public function direct(){
		if(!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS']){ 
			$request = $this->getRequest(); 
			$request    = $this->getRequest();
            $url = 'https://' . $_SERVER['HTTP_HOST'] . $request->getRequestUri(); 
			$redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector'); 
			$redirector->gotoUrl($url); 
		} 
	}
}